package top.infopub.mgr.bpa.service.impl;

import org.springframework.stereotype.Service;
import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.PackageSureDetailDao;
import top.infopub.mgr.bpa.service.PackageSureDetailService;
import top.infopub.model.bpa.DeviceSureDetail;
import top.infopub.model.bpa.PackageSureDetail;

import javax.annotation.Resource;
import java.math.BigDecimal;

/**
 * Created by wurz on 2021/6/11.
 */
@Service
public class PackageSureDetailServiceImpl extends GenericServiceImpl<PackageSureDetail, String> implements PackageSureDetailService {
    @Resource
    private PackageSureDetailDao packageSureDetailDao;

    @Override
    public BigDecimal selectAddupAmountBySubNameAndRefId(String subName, String refId) {
        return packageSureDetailDao.selectAddupAmountBySubNameAndRefId(subName, refId);
    }

    @Override
    public GenericDao<PackageSureDetail, String> getDao() {
        return packageSureDetailDao;
    }
}
